﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestRigid : MonoBehaviour
{
    private Rigidbody rigid;

    public float acc = 10;
    // Start is called before the first frame update
    void Start()
    {
        rigid = GetComponent<Rigidbody>();
    }

    [ContextMenu("AddRForce")]
    void AddRForce()
    {
        if (rigid)
        {
            rigid.AddRelativeForce(acc * Vector3.forward,ForceMode.Acceleration);
        }
    }
    
    // Update is called once per frame
    void Update()
    {
        
    }
}
